package hrms.dao;

import hrms.entity.Salary;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SalaryMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Salary record);

    Salary selectByPrimaryKey(Integer id);

    List<Salary> selectAll();

    int updateByPrimaryKey(Salary record);

    List<Salary> selectByDateOrStaffId(@Param("createYear") Integer createYear
            , @Param("createMonth") Integer createMonth
            ,Integer staffId);
}